import $http from '@/mapper/http.js';
const base= '/sns/topic';
let apiConfig = {
	hotWorks: base + '/hot-works',
	newestWorks: base +  '/newest-works',
	huatiDetail: base + '/detail'
}
export default {
	getHotWorks(topic_id,page,limit){
		return $http.post(apiConfig.hotWorks,{
			topic_id,page,limit
		})
	},
	getNewestWorks(topic_id,page,limit){
		return $http.post(apiConfig.newestWorks,{
			topic_id,page,limit
		})
	},
	getHuatiDetail(topic_id){
		return $http.post(apiConfig.huatiDetail,{
			topic_id
		})
	}
}